package designmode.factory;

/**
 * Created by Administrator on 2017/10/31 031.
 */
public class SimplePizzaFactory
{
    public Pizza createPizza(String name)
    {
        if("CheesePizza".equals(name))
        {
            return new CheesePizza();
        }else if("VeggiePizza".equals(name))
        {
            return new VeggiePizza();
        }
        return null;
    }
}
